﻿using Blog.Core.Domain.Model;
using Blog.Core.DTO.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Blog.Core.IServices
{
    public interface IlogRecordIService
    {
        /// <summary>
        /// 系统日志的显示（查询）操作
        /// </summary>
        /// <returns></returns>
        Task<PageDTO<Journal>> GetLogList(PagelogRecordDTO dto);
        /// <summary>
        /// 获取日志，不分页
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<List<Journal>> LogList(PagelogRecordDTO dto);
        /// <summary>
        /// 添加系统日志
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        Task<int> LogAdd(Journal m);
    }
}
